//
// Created by 33145 on 2023/5/27.
//

#ifndef TINYTINYRPC_UTIL_H
#define TINYTINYRPC_UTIL_H

#include <sys/types.h>
#include <unistd.h>
#include <string>

namespace rocket {

  pid_t getPid();

  pid_t getThreadId();

  int64_t getNowMs();

  int32_t getInt32FromNetByte(const char* buf);

  class MsgIDUtil {
  public:
    static std::string GenMsgID();
  };

}

#endif //TINYTINYRPC_UTIL_H
